package com.zimmor.user.controller;

import com.zimmor.user.client.LabelClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author:zimmor
 * @Date: 2021/3/25 22:29
 * @Description
 * @version: 1.0.0
 */
@RestController
@CrossOrigin
@RequestMapping("/user")
public class UserController {
    @Autowired
    private LabelClient labelClient;

    @RequestMapping(method = RequestMethod.GET, value = "/label/{id}")
    public String getLabelName(@PathVariable String id) {
        return labelClient.getName(id);
    }
}
